"use strict";

/**
 * Created by xuchao on 15/10/16.
 */
angular.module('app.controller')
.controller('RankCtrl', function ($scope, rank, $stateParams) {
    $scope.rank = rank;

    (function () {
      var timeline = {
        title: '德州移动精英店长评选活动',
        link: 'http://activity.weixin.cloudatum.com/activity/dzmanager/index.html#/?activityId=' + $stateParams.activityId,
        imgUrl: 'http://activity.weixin.cloudatum.com/activity/dzmanager/assets/images/logo.jpg'
      };
      var message = {
        title: '德州移动精英店长评选活动',
        desc: '德州移动精英店长火爆评选中,内藏帅哥美女快来瞅瞅你认识几个',
        link: 'http://activity.weixin.cloudatum.com/activity/dzmanager/index.html#/?activityId=' + $stateParams.activityId,
        imgUrl: 'http://activity.weixin.cloudatum.com/activity/dzmanager/assets/images/logo.jpg'
      };
      wx.onMenuShareTimeline(timeline);
      wx.onMenuShareAppMessage(message);
    })();
  });
